package com.gaohe.official.service.impl;

import java.util.List;
import com.gaohe.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gaohe.official.mapper.FmExamineMapper;
import com.gaohe.official.domain.FmExamine;
import com.gaohe.official.service.IFmExamineService;

/**
 * 认证审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-03
 */
@Service
public class FmExamineServiceImpl implements IFmExamineService 
{
    @Autowired
    private FmExamineMapper fmExamineMapper;

    /**
     * 查询认证审核
     * 
     * @param examineId 认证审核主键
     * @return 认证审核
     */
    @Override
    public FmExamine selectFmExamineByExamineId(Long examineId)
    {
        return fmExamineMapper.selectFmExamineByExamineId(examineId);
    }

    /**
     * 查询认证审核列表
     * 
     * @param fmExamine 认证审核
     * @return 认证审核
     */
    @Override
    public List<FmExamine> selectFmExamineList(FmExamine fmExamine)
    {
        return fmExamineMapper.selectFmExamineList(fmExamine);
    }

    /**
     * 新增认证审核
     * 
     * @param fmExamine 认证审核
     * @return 结果
     */
    @Override
    public int insertFmExamine(FmExamine fmExamine)
    {
        fmExamine.setCreateTime(DateUtils.getNowDate());
        return fmExamineMapper.insertFmExamine(fmExamine);
    }

    /**
     * 修改认证审核
     * 
     * @param fmExamine 认证审核
     * @return 结果
     */
    @Override
    public int updateFmExamine(FmExamine fmExamine)
    {
        fmExamine.setUpdateTime(DateUtils.getNowDate());
        return fmExamineMapper.updateFmExamine(fmExamine);
    }

    /**
     * 批量删除认证审核
     * 
     * @param examineIds 需要删除的认证审核主键
     * @return 结果
     */
    @Override
    public int deleteFmExamineByExamineIds(Long[] examineIds)
    {
        return fmExamineMapper.deleteFmExamineByExamineIds(examineIds);
    }

    /**
     * 删除认证审核信息
     * 
     * @param examineId 认证审核主键
     * @return 结果
     */
    @Override
    public int deleteFmExamineByExamineId(Long examineId)
    {
        return fmExamineMapper.deleteFmExamineByExamineId(examineId);
    }
}
